package com.ruoyi.cms.service;

import com.ruoyi.cms.domain.CmsModel;

import java.util.Map;

/**
 * 操作生成的"cms_tab_"表
 */
public interface ICmsTabService {

    public static final String CMS_TAB_ = "cms_tab_";

    /**
     * 建表
     * @param model
     */
    public void createTable(CmsModel model);

    /**
     * 插入
     * @param model
     * @param topicId
     * @param data
     * @return
     */
    public int insert(CmsModel model, long topicId, Map<String, Object> data);

    /**
     * 修改
     * @param model
     * @param topicId
     * @param data
     * @return
     */
    public int update(CmsModel model, long topicId, Map<String, Object> data);

    /**
     * 查询
     * @param model
     * @param topicId
     * @return
     */
    public Map<String, Object> select(CmsModel model, long topicId);

    /**
     * 删除
     * @param model
     * @param topicId
     * @return
     */
    public int delete(CmsModel model, long topicId);
}
